#define _CRT_SECURE_NO_WARNINGS 1
int removeDuplicates(int* nums, int numsSize)
{
    int i = 0;
    int count = 0;
    for (i = 1; i < numsSize; i++)
    {
        while (nums[count] != nums[i])
        {
            count++;
            nums[count] = nums[i];
        }
    }
    return count + 1;
}